#include <unistd.h>

#include <iostream>

using namespace std;

extern char etext, edata, end;

int main(int argc, char *argv[]) {
    cout << "Program Break: " << sbrk(0) << endl;
    cout << "Program Text (etext): " << static_cast<void*>(&etext) << endl;
    cout << "Initialized Data (edata): " << static_cast<void*>(&edata) << endl;
    cout << "Uninitialized Data (end): " << static_cast<void*>(&::end) << endl;

    return 0;
}
